package User;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;



import Contest_reg.*;

public interface UserMapper {
	void insert(HashMap<String,Object> item);
	
	void updateEnable(@Param("user_id") int user_id,@Param("enable") int enable);
	
	UserItem selectById(@Param("id") String id,@Param("team_id") int team_id);
	List<UserItem> selectById2(@Param("id") String id);
	List<HashMap<String,Object>> selectByTeamId(int team_id);
	List<HashMap<String,Object>> selectByTeamId2(int team_id);
	List<UserItem> selectByIdRegId(@Param("id") String id,@Param("contest_reg_id") int contest_reg_id);
	List<Contest_regItem> selectReport(String id);
	
	
	HashMap<String,Object> selectByTeamLeader(@Param("team_id") int team_id);
	
	void deleteByIdTeam(@Param("team_id") int team_id,@Param("id") String id);
	void updateByIdTeam(@Param("team_id") int team_id,@Param("position") String position,@Param("id") String id);
	void deleteByTeam(int team_id);
	
	Integer userCount(int team_id);

}
